package com.gps.pe.exception;

/**
 * Validation error
 * 
 * @author GPS
 *
 */
public class ValidationError {

	/** Code of validation error. */
	private String code;

	/** Validation error message. */
	private String message;

	/** Validation message parameters. */
	private String[] messageParameters;

	/**
	 * Constructor.
	 * 
	 * @param code
	 *            validation error code
	 * @param message
	 *            validation error message
	 * @param messageParameters
	 *            parameters of validation message
	 */
	public ValidationError(String code, String message, String... messageParameters) {
		super();
		this.code = code;
		this.message = message;
		this.messageParameters = messageParameters;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @return the messageParameters
	 */
	public String[] getMessageParameters() {
		return messageParameters;
	}
}
